<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">
 
    <title>添加学生</title>
 
   <link href="/public/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
   
    <!-- Custom styles for this template -->
   <link href="/public/css/main.css" rel="stylesheet">
  </head>
 
  <body>
    <div class="container-fluid">
      <div class="row">
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
          <h2 class="sub-header">编辑学生</h2>
          <form action="/students/edit" method="post">
            <div class="form-group">
              <label for="name">姓名</label>
              <input type="text" class="form-control" id="name" placeholder="姓名" name="name" value="{{ student.name }}">
              <!-- 隐藏元素用来存放不希望被用户看见，但必须得提交的内容 -->
              <input type="hidden" name="id" value="{{ student.id }}">
            </div>
            <div class="form-group">
              <label >性别</label>
              <div>
                <label class="radio-inline">
                <input type="radio" name="gender" id="gender" value="0"> 男
                </label>
                <label class="radio-inline">
                <input type="radio" name="gender" id="gender" value="1"> 女
                </label>
              </div>
            </div>
            <div class="form-group">
              <label for="age">年龄</label>
              <input type="number" class="form-control" id="age" placeholder="年龄" name="age" value="{{ student.age }}">
            </div>
            <div class="form-group">
              <label for="hobbies">爱好</label>
              <input type="text" class="form-control" id="hobbies" placeholder="爱好" name="hobbies" value="{{ student.hobbies }}">
            </div>
          
            <button type="submit" class="btn btn-default">提交</button>
          </form>
        </div>
      </div>
    </div>
  </body>
</html>
